<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');

    //用户列表
    $router->resource('users', UsersController::class);

    //考勤列表
    $router->resource('attendances', AttendanceController::class);

    //办公区域列表
    $router->resource('office-areas', OfficeAreaController::class);

    //用户区域列表()
    $router->resource('user-areas', UserAreaController::class);

    //banner
    $router->resource('banners', BannerController::class);

    //通知
    $router->resource('notices', NoticeController::class);

});
